
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pyTweetPhoto</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>pyTweetPhoto</strong></big></big> (version 0.2)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/marcelcaraciolo/Desktop/TwitterAPis/pythontweetphoto/pyTweetPhoto/pyTweetPhoto/pyTweetPhoto.py">/Users/marcelcaraciolo/Desktop/TwitterAPis/pythontweetphoto/pyTweetPhoto/pyTweetPhoto/pyTweetPhoto.py</a></font></td></tr></table>
    <p><tt>#&nbsp;pythonTweetPhoto&nbsp;-&nbsp;A&nbsp;library&nbsp;that&nbsp;provides&nbsp;a&nbsp;python&nbsp;interface&nbsp;to&nbsp;the&nbsp;TweetPhoto&nbsp;API.<br>
&nbsp;<br>
#&nbsp;Copyright&nbsp;(c)&nbsp;2010/2009,&nbsp;Marcel&nbsp;Caraciolo<br>
#&nbsp;caraciol@gmail.com<br>
#&nbsp;twitter:&nbsp;marcelcaraciolo<br>
&nbsp;<br>
#&nbsp;Redistribution&nbsp;and&nbsp;use&nbsp;in&nbsp;source&nbsp;and&nbsp;binary&nbsp;forms,&nbsp;with&nbsp;or&nbsp;without<br>
#&nbsp;modification,&nbsp;are&nbsp;permitted&nbsp;provided&nbsp;that&nbsp;the&nbsp;following&nbsp;conditions&nbsp;are&nbsp;met:<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Redistributions&nbsp;of&nbsp;source&nbsp;code&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer.<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Redistributions&nbsp;in&nbsp;binary&nbsp;form&nbsp;must&nbsp;reproduce&nbsp;the&nbsp;above&nbsp;copyright<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;notice,&nbsp;this&nbsp;list&nbsp;of&nbsp;conditions&nbsp;and&nbsp;the&nbsp;following&nbsp;disclaimer&nbsp;in&nbsp;the<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentation&nbsp;and/or&nbsp;other&nbsp;materials&nbsp;provided&nbsp;with&nbsp;the&nbsp;distribution.<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Neither&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;author&nbsp;nor&nbsp;the&nbsp;names&nbsp;of&nbsp;its&nbsp;contributors&nbsp;may<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;be&nbsp;used&nbsp;to&nbsp;endorse&nbsp;or&nbsp;promote&nbsp;products&nbsp;derived&nbsp;from&nbsp;this&nbsp;software<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;without&nbsp;specific&nbsp;prior&nbsp;written&nbsp;permission.<br>
#<br>
#&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;AUTHOR&nbsp;AND&nbsp;CONTRIBUTORS``AS&nbsp;IS''&nbsp;AND&nbsp;ANY<br>
#&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;THE&nbsp;IMPLIED<br>
#&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE&nbsp;ARE<br>
#&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;AUTHOR&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE&nbsp;LIABLE&nbsp;FOR&nbsp;ANY<br>
#&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR&nbsp;CONSEQUENTIAL&nbsp;DAMAGES<br>
#&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;<br>
#&nbsp;LOSS&nbsp;OF&nbsp;USE,&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND<br>
#&nbsp;ON&nbsp;ANY&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT<br>
#&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE&nbsp;OF&nbsp;THIS<br>
#&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="cStringIO.html">cStringIO</a><br>
<a href="base64.html">base64</a><br>
</td><td width="25%" valign=top><a href="httplib.html">httplib</a><br>
<a href="mimetypes.html">mimetypes</a><br>
</td><td width="25%" valign=top><a href="simplejson.html">simplejson</a><br>
<a href="urllib.html">urllib</a><br>
</td><td width="25%" valign=top><a href="urlparse.html">urlparse</a><br>
<a href="xml.dom.minidom.html">xml.dom.minidom</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pyTweetPhoto.html#TweetPhotoApi">TweetPhotoApi</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pyTweetPhoto.html#TweetPhotoError">TweetPhotoError</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="TweetPhotoApi">class <strong>TweetPhotoApi</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;python&nbsp;interface&nbsp;into&nbsp;the&nbsp;TweetPhoto&nbsp;API&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
Example&nbsp;usage:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To&nbsp;create&nbsp;a&nbsp;instance&nbsp;of&nbsp;<a href="#TweetPhotoApi">TweetPhotoApi</a>.Api&nbsp;class,&nbsp;&nbsp;with&nbsp;&nbsp;authentication<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;import&nbsp;pyTweetPhoto<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api&nbsp;=&nbsp;pyTweetPhoto.<a href="#TweetPhotoApi">TweetPhotoApi</a>(username='twitter&nbsp;user',&nbsp;password='twitter&nbsp;pass',&nbsp;api_key='TweetPhoto&nbsp;API&nbsp;Key')'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To&nbsp;fecth&nbsp;the&nbsp;details&nbsp;of&nbsp;photo<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;photoDetails&nbsp;=&nbsp;api.<a href="#TweetPhotoApi-GetPhotoDetails">GetPhotoDetails</a>(photo_id=92922)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;print&nbsp;photoDetails<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To&nbsp;upload&nbsp;a&nbsp;photo&nbsp;to&nbsp;TweetPhoto<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;status&nbsp;=&nbsp;api.<a href="#TweetPhotoApi-Upload">Upload</a>(api.<a href="#TweetPhotoApi-Upload">Upload</a>(fileName='FILE_PATH',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message='This&nbsp;is&nbsp;a&nbsp;new&nbsp;photo!&nbsp;max:&nbsp;200&nbsp;characters',&nbsp;tags='tag1,tag2,tag3',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;geoLocation='lat,long',post_to_twitter=True))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;There&nbsp;are&nbsp;many&nbsp;other&nbsp;methods,&nbsp;including:<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api.<a href="#TweetPhotoApi-CheckInPhoto">CheckInPhoto</a>(photo_id)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api.<a href="#TweetPhotoApi-RemoveComment">RemoveComment</a>(photo_id,comment_id)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api.<a href="#TweetPhotoApi-VoteThumbsDown">VoteThumbsDown</a>(photo_id)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api.<a href="#TweetPhotoApi-VoteThumbsUp">VoteThumbsUp</a>(photo_id)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api.<a href="#TweetPhotoApi-RemoveFavoritePhoto">RemoveFavoritePhoto</a>(photo_id)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api.<a href="#TweetPhotoApi-FavoritePhoto">FavoritePhoto</a>(photo_id,post_to_twitter)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;api.<a href="#TweetPhotoApi-AddComment">AddComment</a>(photo_id,comment_id)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="TweetPhotoApi-AddComment"><strong>AddComment</strong></a>(self, user_id<font color="#909090">=None</font>, photo_id<font color="#909090">=None</font>, comment<font color="#909090">=None</font>, post_to_twitter<font color="#909090">=False</font>)</dt><dd><tt>Add&nbsp;a&nbsp;comment&nbsp;to&nbsp;a&nbsp;photo.&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;be&nbsp;user&nbsp;authenticated.<br>
Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;<a href="#TweetPhotoApi">TweetPhotoApi</a>.SignIn&nbsp;calling&nbsp;procedure.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_id:&nbsp;must&nbsp;be&nbsp;the&nbsp;user&nbsp;id&nbsp;in&nbsp;the&nbsp;profile<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;is&nbsp;a&nbsp;valid&nbsp;id&nbsp;for&nbsp;a&nbsp;photo&nbsp;<a href="__builtin__.html#object">object</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;comment:&nbsp;the&nbsp;comment&nbsp;that&nbsp;will&nbsp;be&nbsp;added&nbsp;to&nbsp;the&nbsp;photo.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;post_to_twitter:&nbsp;It&nbsp;specifies&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;post&nbsp;the&nbsp;comment&nbsp;and&nbsp;a&nbsp;link<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;the&nbsp;photo&nbsp;in&nbsp;the&nbsp;Twitter&nbsp;service<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;comment&nbsp;&nbsp;response</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-CheckInPhoto"><strong>CheckInPhoto</strong></a>(self, user_id<font color="#909090">=None</font>, photo_id<font color="#909090">=None</font>)</dt><dd><tt>Remove&nbsp;a&nbsp;user&nbsp;favorite&nbsp;related&nbsp;to&nbsp;photo.&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;be&nbsp;user<br>
authenticated.&nbsp;Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;<a href="#TweetPhotoApi">TweetPhotoApi</a>.SignIn&nbsp;calling<br>
procedure.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_id:&nbsp;must&nbsp;be&nbsp;the&nbsp;user&nbsp;id&nbsp;in&nbsp;the&nbsp;profile<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;the&nbsp;id&nbsp;of&nbsp;the&nbsp;photo.<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;status&nbsp;Code&nbsp;of&nbsp;the&nbsp;response</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-ClearCredentials"><strong>ClearCredentials</strong></a>(self)</dt><dd><tt>Clear&nbsp;the&nbsp;username&nbsp;and&nbsp;password&nbsp;for&nbsp;this&nbsp;instance</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-DeletePhoto"><strong>DeletePhoto</strong></a>(self, photo_id<font color="#909090">=None</font>)</dt><dd><tt>Delete&nbsp;a&nbsp;photo&nbsp;the&nbsp;user&nbsp;has&nbsp;uploaded.&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;the<br>
user&nbsp;be&nbsp;authenticated.&nbsp;Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;<br>
<a href="#TweetPhotoApi">TweetPhotoApi</a>.SignIn&nbsp;calling&nbsp;procedure.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;The&nbsp;unique&nbsp;id&nbsp;of&nbsp;the&nbsp;photo<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns&nbsp;the&nbsp;status&nbsp;Response&nbsp;of&nbsp;the&nbsp;operation</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-FavoritePhoto"><strong>FavoritePhoto</strong></a>(self, user_id<font color="#909090">=None</font>, photo_id<font color="#909090">=None</font>, post_to_twitter<font color="#909090">=False</font>)</dt><dd><tt>Add&nbsp;a&nbsp;user&nbsp;favorite&nbsp;related&nbsp;to&nbsp;photo.&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;be&nbsp;user<br>
authenticated.&nbsp;Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;<a href="#TweetPhotoApi">TweetPhotoApi</a>.SignIn&nbsp;calling<br>
procedure.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_id:&nbsp;must&nbsp;be&nbsp;the&nbsp;user&nbsp;id&nbsp;in&nbsp;the&nbsp;profile<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;the&nbsp;id&nbsp;of&nbsp;the&nbsp;photo.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;post_to_twitter:&nbsp;It&nbsp;specifies&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;post&nbsp;the&nbsp;favorite&nbsp;and&nbsp;a&nbsp;link<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;the&nbsp;photo&nbsp;in&nbsp;the&nbsp;Twitter&nbsp;service<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;current&nbsp;status&nbsp;of&nbsp;the&nbsp;favorite&nbsp;photo</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-GetContentType"><strong>GetContentType</strong></a>(self, fileName)</dt><dd><tt>Returns&nbsp;the&nbsp;image&nbsp;content&nbsp;type<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileName:&nbsp;the&nbsp;file&nbsp;path</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-GetFileData"><strong>GetFileData</strong></a>(self, image<font color="#909090">=None</font>, fileName<font color="#909090">=None</font>)</dt><dd><tt>Method&nbsp;to&nbsp;get&nbsp;the&nbsp;image&nbsp;content&nbsp;in&nbsp;bytes<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image:&nbsp;the&nbsp;image&nbsp;content&nbsp;in&nbsp;bytes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileName&nbsp;=&nbsp;the&nbsp;image&nbsp;file&nbsp;path<br>
Return:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;image&nbsp;content&nbsp;in&nbsp;bytes</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-GetPhotoDetails"><strong>GetPhotoDetails</strong></a>(self, photo_id<font color="#909090">=None</font>)</dt><dd><tt>Get&nbsp;all&nbsp;the&nbsp;metadata&nbsp;for&nbsp;a&nbsp;photo,&nbsp;including&nbsp;user&nbsp;comments&nbsp;<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;the&nbsp;id&nbsp;of&nbsp;the&nbsp;photo.<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;photo&nbsp;metadata</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-RemoveComment"><strong>RemoveComment</strong></a>(self, user_id<font color="#909090">=None</font>, photo_id<font color="#909090">=None</font>, comment_id<font color="#909090">=None</font>)</dt><dd><tt>Delete&nbsp;a&nbsp;comment&nbsp;to&nbsp;a&nbsp;photo.&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;be&nbsp;user&nbsp;authenticated.<br>
Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;TweetPhotoAPi.SignIn&nbsp;calling&nbsp;procedure.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_id:&nbsp;must&nbsp;be&nbsp;the&nbsp;user&nbsp;id&nbsp;in&nbsp;the&nbsp;profile<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;is&nbsp;a&nbsp;valid&nbsp;id&nbsp;for&nbsp;a&nbsp;photo&nbsp;<a href="__builtin__.html#object">object</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;comment_id:&nbsp;the&nbsp;comment&nbsp;that&nbsp;will&nbsp;be&nbsp;deleted&nbsp;from&nbsp;the&nbsp;photo.<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;&nbsp;statud&nbsp;code&nbsp;response</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-RemoveFavoritePhoto"><strong>RemoveFavoritePhoto</strong></a>(self, user_id<font color="#909090">=None</font>, photo_id<font color="#909090">=None</font>, post_to_twitter<font color="#909090">=False</font>)</dt><dd><tt>Remove&nbsp;a&nbsp;user&nbsp;favorite&nbsp;related&nbsp;to&nbsp;photo.&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;be&nbsp;user<br>
authenticated.&nbsp;Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;<a href="#TweetPhotoApi">TweetPhotoApi</a>.SignIn&nbsp;calling<br>
procedure.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_id:&nbsp;must&nbsp;be&nbsp;the&nbsp;user&nbsp;id&nbsp;in&nbsp;the&nbsp;profile<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;the&nbsp;id&nbsp;of&nbsp;the&nbsp;photo.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;post_to_twitter:&nbsp;It&nbsp;specifies&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;post&nbsp;the&nbsp;favorite&nbsp;and&nbsp;a&nbsp;link<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;the&nbsp;photo&nbsp;in&nbsp;the&nbsp;Twitter&nbsp;service<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;current&nbsp;status&nbsp;of&nbsp;the&nbsp;favorite&nbsp;photo</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-SetCredentials"><strong>SetCredentials</strong></a>(self, username<font color="#909090">=None</font>, password<font color="#909090">=None</font>, apikey<font color="#909090">=None</font>)</dt><dd><tt>Set&nbsp;the&nbsp;username,&nbsp;password&nbsp;and&nbsp;apiKey&nbsp;&nbsp;for&nbsp;this&nbsp;instance<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;username:&nbsp;the&nbsp;tweetphoto&nbsp;username.&nbsp;(In&nbsp;this&nbsp;case&nbsp;it&nbsp;can&nbsp;be&nbsp;the&nbsp;twitter&nbsp;username).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;password:&nbsp;the&nbsp;tweetphoto&nbsp;password.&nbsp;(In&nbsp;this&nbsp;case&nbsp;it&nbsp;can&nbsp;be&nbsp;the&nbsp;twitter&nbsp;password).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;apikey:&nbsp;the&nbsp;tweetphoto&nbsp;API&nbsp;key.&nbsp;(It&nbsp;can&nbsp;be&nbsp;acquired&nbsp;at&nbsp;<a href="http://tweetphoto.com/developer">http://tweetphoto.com/developer</a>)</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-SetUserAgent"><strong>SetUserAgent</strong></a>(self, user_agent)</dt><dd><tt>Override&nbsp;the&nbsp;default&nbsp;user&nbsp;agent<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_agent:&nbsp;a&nbsp;string&nbsp;that&nbsp;should&nbsp;be&nbsp;send&nbsp;to&nbsp;the&nbsp;server&nbsp;as&nbsp;the&nbsp;User-agent</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-SignIn"><strong>SignIn</strong></a>(self)</dt><dd><tt>Sign&nbsp;in&nbsp;into&nbsp;the&nbsp;TweetPhoto&nbsp;webservice.&nbsp;It's&nbsp;a&nbsp;privileged&nbsp;operation<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;thus&nbsp;the&nbsp;username/password&nbsp;is&nbsp;required<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Before&nbsp;use&nbsp;SignIn,&nbsp;make&nbsp;sure&nbsp;that&nbsp;your&nbsp;credentials&nbsp;are&nbsp;passed&nbsp;to&nbsp;the&nbsp;API.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ps:&nbsp;By&nbsp;the&nbsp;default&nbsp;it&nbsp;uses&nbsp;the&nbsp;Basic&nbsp;Auth&nbsp;SignIn&nbsp;(For&nbsp;now&nbsp;only&nbsp;twitter&nbsp;users)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;pyTweetPhoto.User&nbsp;instance&nbsp;representing&nbsp;the&nbsp;user&nbsp;authenticated.</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-Upload"><strong>Upload</strong></a>(self, fileName<font color="#909090">=None</font>, image<font color="#909090">=None</font>, message<font color="#909090">=None</font>, tags<font color="#909090">=None</font>, geoLocation<font color="#909090">=None</font>, post_to_twitter<font color="#909090">=False</font>)</dt><dd><tt>Upload&nbsp;a&nbsp;photo&nbsp;to&nbsp;TweetPhoto&nbsp;Web&nbsp;Service&nbsp;from&nbsp;the&nbsp;authenticated&nbsp;user&nbsp;<br>
&nbsp;<br>
The&nbsp;pyTweetPhoto.<a href="#TweetPhotoApi">TweetPhotoApi</a>&nbsp;must&nbsp;be&nbsp;authenticated.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image:&nbsp;the&nbsp;Image&nbsp;byte&nbsp;stream<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileName:&nbsp;the&nbsp;Image&nbsp;file&nbsp;path<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;the&nbsp;message&nbsp;text&nbsp;to&nbsp;be&nbsp;posted&nbsp;with&nbsp;the&nbsp;photo,&nbsp;limited&nbsp;to&nbsp;200&nbsp;characters.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tags:&nbsp;a&nbsp;comma&nbsp;delimited&nbsp;list&nbsp;of&nbsp;tags&nbsp;for&nbsp;the&nbsp;photo&nbsp;in&nbsp;a&nbsp;string&nbsp;(e.g.&nbsp;'cat,funny,house')<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;geoLocation:&nbsp;a&nbsp;string&nbsp;in&nbsp;the&nbsp;format&nbsp;lat,long&nbsp;with&nbsp;the&nbsp;geolocation&nbsp;tag&nbsp;for&nbsp;latitude&nbsp;and&nbsp;longitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;post_to_twitter:&nbsp;Whether&nbsp;or&nbsp;not&nbsp;to&nbsp;post&nbsp;to&nbsp;twitter<br>
Return:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;structured&nbsp;data&nbsp;representing&nbsp;the&nbsp;photo&nbsp;uploaded.</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-VoteThumbsDown"><strong>VoteThumbsDown</strong></a>(self, photo_id<font color="#909090">=None</font>, post_to_twitter<font color="#909090">=False</font>)</dt><dd><tt>Allows&nbsp;user&nbsp;to&nbsp;vote&nbsp;for&nbsp;a&nbsp;photo&nbsp;&nbsp;with&nbsp;a&nbsp;"thumbs&nbsp;up"&nbsp;or&nbsp;"thumbs&nbsp;down"&nbsp;system<br>
This&nbsp;method&nbsp;is&nbsp;for&nbsp;thumbs&nbsp;up.&nbsp;&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;be&nbsp;user<br>
authenticated.&nbsp;Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;<a href="#TweetPhotoApi">TweetPhotoApi</a>.SignIn&nbsp;<br>
calling&nbsp;procedure.&nbsp;<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;the&nbsp;id&nbsp;of&nbsp;the&nbsp;photo<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;post_to_twitter:&nbsp;It&nbsp;specifies&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;post&nbsp;the&nbsp;vote&nbsp;and&nbsp;a&nbsp;link<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;the&nbsp;photo&nbsp;in&nbsp;the&nbsp;Twitter&nbsp;service</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-VoteThumbsUp"><strong>VoteThumbsUp</strong></a>(self, photo_id<font color="#909090">=None</font>, post_to_twitter<font color="#909090">=False</font>)</dt><dd><tt>Allows&nbsp;user&nbsp;to&nbsp;vote&nbsp;for&nbsp;a&nbsp;photo&nbsp;&nbsp;with&nbsp;a&nbsp;"thumbs&nbsp;up"&nbsp;or&nbsp;"thumbs&nbsp;down"&nbsp;system<br>
This&nbsp;method&nbsp;is&nbsp;for&nbsp;thumbs&nbsp;up.&nbsp;&nbsp;This&nbsp;is&nbsp;a&nbsp;privileged&nbsp;operation&nbsp;and&nbsp;need&nbsp;be&nbsp;user<br>
authenticated.&nbsp;Before&nbsp;using&nbsp;this&nbsp;method&nbsp;it's&nbsp;necessary&nbsp;the&nbsp;<a href="#TweetPhotoApi">TweetPhotoApi</a>.SignIn&nbsp;<br>
calling&nbsp;procedure.&nbsp;<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;photo_id:&nbsp;the&nbsp;id&nbsp;of&nbsp;the&nbsp;photo<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;post_to_twitter:&nbsp;It&nbsp;specifies&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;post&nbsp;the&nbsp;vote&nbsp;and&nbsp;a&nbsp;link<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;the&nbsp;photo&nbsp;in&nbsp;the&nbsp;Twitter&nbsp;service<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;Status&nbsp;code&nbsp;and&nbsp;message&nbsp;status</tt></dd></dl>

<dl><dt><a name="TweetPhotoApi-__init__"><strong>__init__</strong></a>(self, username<font color="#909090">=None</font>, password<font color="#909090">=None</font>, apikey<font color="#909090">=None</font>)</dt><dd><tt>Instantiate&nbsp;a&nbsp;new&nbsp;twitter.Api&nbsp;<a href="__builtin__.html#object">object</a>.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;username:&nbsp;the&nbsp;tweetphoto&nbsp;username.&nbsp;(In&nbsp;this&nbsp;case&nbsp;it&nbsp;can&nbsp;be&nbsp;the&nbsp;twitter&nbsp;username).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;password:&nbsp;the&nbsp;tweetphoto&nbsp;password.&nbsp;(In&nbsp;this&nbsp;case&nbsp;it&nbsp;can&nbsp;be&nbsp;the&nbsp;twitter&nbsp;password).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;apikey:&nbsp;the&nbsp;tweetphoto&nbsp;API&nbsp;key.&nbsp;(It&nbsp;can&nbsp;be&nbsp;acquired&nbsp;at&nbsp;<a href="http://tweetphoto.com/developer">http://tweetphoto.com/developer</a>)</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="TweetPhotoError">class <strong>TweetPhotoError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Base&nbsp;class&nbsp;for&nbsp;TweetPhoto&nbsp;errors<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pyTweetPhoto.html#TweetPhotoError">TweetPhotoError</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>message</strong></dt>
<dd><tt>Returns&nbsp;the&nbsp;first&nbsp;argument&nbsp;used&nbsp;to&nbsp;construct&nbsp;this&nbsp;error</tt></dd>
</dl>
<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="TweetPhotoError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;x.__class__.__doc__&nbsp;for&nbsp;signature</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object at 0x4eaa40&gt;<dd><tt>T.<a href="#TweetPhotoError-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<hr>
Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
<dl><dt><a name="TweetPhotoError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="TweetPhotoError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="TweetPhotoError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>

<dl><dt><a name="TweetPhotoError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
&nbsp;<br>
Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>

<dl><dt><a name="TweetPhotoError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>

<dl><dt><a name="TweetPhotoError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>

<dl><dt><a name="TweetPhotoError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>

<dl><dt><a name="TweetPhotoError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>

<dl><dt><a name="TweetPhotoError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#TweetPhotoError-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
</dl>
<dl><dt><strong>args</strong></dt>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>CHARACTER_LIMIT</strong> = 200<br>
<strong>COMMENT_STATUSES</strong> = {200: 'Comment sucessfully removed', 404: 'Comment not found'}<br>
<strong>VOTE_STATUSES</strong> = {200: 'Vote worked and counted', 401: 'Invalid Credentials', 404: 'Photo not found', 409: 'User has already voted for that photo', 500: 'Internal Error'}<br>
<strong>__author__</strong> = 'caraciol@gmail.com'<br>
<strong>__version__</strong> = '0.2'</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">caraciol@gmail.com</td></tr></table>
</body></html>